package tk.deep.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Created by boot on 9/2/15.
 */
public class MyHttpSessionListener implements HttpSessionListener {
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("Session is created!");
    }

    /**
     * session destroyed event handler.
     * <p>
     * See web.xml for more detail of the session timeout.
     * When you set the value to 0 ,the session will never timeout.
     *
     * @param se
     */
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("Session is destroyed!");
    }
}
